home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-11-09 | 2.0 KB | 88 lines | [TEXT/MPS ] |
- TITLE 'LowMemDataAndCode'
- BLANKS OFF
- PRINT OFF
- MACHINE MC68000 ;pick 68000 target
- CODEREFS FORCEPC
- DATAREFS RELATIVE
-
- InitialStackPointer EQU $00093f3e ;initial A7 value
-
- ;
- ; Here is the 256-vector exception table for the system.
- ;
- VectTable MAIN
- ORG 0000
- LowMemVect
-
- InitialSSP DC.L InitialStackPointer
- InitialPC DC.L $00000400 ; ORG 1024, start of EKGmain.c
- BusError DC.L 256 ; jump to ExProc below
- AddrError DC.L 256
- IllegalInstruct DC.L 256
- ZeroDivide DC.L 256
- CHKInstruct DC.L 256
- TRAPVInstruct DC.L 256
- PrivViolate DC.L 256
- Trace DC.L 256
- Line1010Emu DC.L 256
- Line1111Emu DC.L 256
- Reserved12 DC.L 256
- Reserved13 DC.L 256
- FormatError DC.L 256 ; only for 68010/12
- UninitINTVector DC.L 256
- Reserved16 DC.L 256
- Reserved17 DC.L 256
- Reserved18 DC.L 256
- Reserved19 DC.L 256
- Reserved20 DC.L 256
- Reserved21 DC.L 256
- Reserved22 DC.L 256
- Reserved23 DC.L 256
- SpuriousINT DC.L 256 ;taken when bus error during INT processing
- Lvl1AutoVector DC.L 256
- Lvl2AutoVector DC.L 256
- Lvl3AutoVector DC.L 256
- Lvl4AutoVector DC.L 256
- Lvl5AutoVector DC.L 256
- Lvl6AutoVector DC.L 256
- Lvl7AutoVector DC.L 256
- TRAPVector1 DC.L 256
- TRAPVector2 DC.L 256
- TRAPVector3 DC.L 256
- TRAPVector4 DC.L 256
- TRAPVector5 DC.L 256
- TRAPVector6 DC.L 256
- TRAPVector7 DC.L 256
- TRAPVector8 DC.L 256
- TRAPVector9 DC.L 256
- TRAPVector10 DC.L 256
- TRAPVector11 DC.L 256
- TRAPVector12 DC.L 256
- TRAPVector13 DC.L 256
- TRAPVector14 DC.L 256
- TRAPVector15 DC.L 256
-
- ENDMAIN
-
- * Start of exception processing routines. These
- * routines simply put a code on the stack and then
- * jump to the main exception processing routine which
- * handles the exception processing. Note that an RTE
- * instruction is used to return, NOT RTS.
- *
- * Note that the vectors above all point to this routine.
- * In real life you would probably want each routine to
- * do something a little different.
-
- ExProc PROC EXPORT
- ORG 256
-
- * process exception code here
-
- * and then return with RTE, not RTS
- RTE
- ENDPROC
-
-
- END
-